/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package shared;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author latata_2
 */
public class ThrowCards implements Serializable {

    private ArrayList<Card> thrownCards;
    private int demandCardType = 0;
    private int demandCardSuit = 0;

    public ThrowCards(ArrayList<Card> thrownCards) {
        this.thrownCards = thrownCards;
    }

    public ThrowCards(Card thrownCard) {
        this.thrownCards = new ArrayList<Card>();
        this.thrownCards.add(thrownCard);
    }

    public ThrowCards(ArrayList<Card> thrownCards, boolean demandCardType, int demandCard) {
        this.thrownCards = thrownCards;
        if (demandCardType) {
            this.demandCardType = demandCard;
        } else {
            this.demandCardSuit = demandCard;
        }
    }

    public ThrowCards(Card thrownCard, boolean demandCardType, int demandCard) {
        this.thrownCards = new ArrayList<Card>();
        this.thrownCards.add(thrownCard);
        if (demandCardType) {
            this.demandCardType = demandCard;
        } else {
            this.demandCardSuit = demandCard;
        }
    }

    public ArrayList<Card> getThrownCards() {
        return thrownCards;
    }

    public int getDemandCardSuit() {
        return demandCardSuit;
    }

    public int getDemandCardType() {
        return demandCardType;
    }
}
